package com.imooc.ad.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang.StringUtils;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdUnitRequest {

    //推广单元的Id
    private Long planId;
    //推广单元的name
    private String unitName;
    //广告位的类型
    private Integer positionType;
    //推广单元的预算
    private Long budget;

    public boolean cteateValidate(){

        return null !=planId && !StringUtils.isEmpty(unitName)
                            && positionType !=null && budget != null;
    }
}
